pub mod helper {

    use std::io;

    pub fn help_game() {
        let mut line = String::from("");
        let guess = 100;
        loop {
            line.clear();
            println!("enter a number ");
            let l = io::stdin().read_line(&mut line);
            if let Ok(_l) = l {
                let m = i32::from_str_radix(line.trim(), 10);
                if let Ok(t) = m {
                    if t > guess {
                        println!(" big ");
                    } else if t < guess {
                        println!("small");
                    } else {
                        println!("===successful win====");
                        break;
                    }
                } else {
                    print!("error input ,please retry again");
                }
            }
        }
    }
}
